#!/usr/bin/python

import wx

class MainPanel(wx.Panel):

	def __init__(me,parent):
		wx.Panel.__init__(me,parent)
		me.Bind(wx.EVT_PAINT, me.OnPaint)

	def OnPaint(me, evt):
		dc = wx.PaintDC(me)
		
		dc.SetBrush(wx.RED_BRUSH)
		dc.SetPen(wx.GREEN_PEN)
		dc.DrawRoundedRectangle(0,0,50,50,3)

		
class MainFrame(wx.Frame):

	def __init__(me):
			
		wx.Frame.__init__(me,parent=None)
		MainPanel(parent=me)
		

app = wx.PySimpleApp()frame = MainFrame()
frame.Show()
frame.Centre()app.MainLoop()